package com.myfum.wingplayer.components.decorators
{
	import com.myfum.wingplayer.components.containers.AbstractContainer;
	
	import mx.controls.Label;

	public class TickerDecorator extends AbstractDecorator
	{
		public function TickerDecorator(container:AbstractContainer)
		{
			super(container);
		}
		
		override public function getReady():void{
			container.dispose();
			container.data = data;
			var lb:Label = new Label();
			lb.width = 100;
			lb.height = 50;
			lb.text = "this is ticker container";
			container.holder.addChild(lb);
			container.getReady();
		}
		
		override public function play():void{
			container.play();
		}
	}
}